package mylist;

/**
 * Desc:
 * @author: lisha 2018/6/14 17:19
 */
public class TestMain {
    public static void main(String[] args) throws InterruptedException {
        MyOneList list = new MyOneList();
        MyThread1 thread1 = new MyThread1(list);
        thread1.setName("A");
        thread1.start();

        MyThread1 thread2 = new MyThread1(list);
        thread2.setName("B");
        thread2.start();

        Thread.sleep(6000);
        System.out.println("size=" + list.getSize());
    }
}
